package com.example.vo.adm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.example.pojo.Emp;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
@Data
@Accessors(chain = true)
public class VehicleVo {

    @ApiModelProperty("流程创建用户编号")
    private String processId;

    @ApiModelProperty("申请人")
    private String empName;

    @ApiModelProperty("申请人编号")
    private String empId;

    @ApiModelProperty("申请的车辆名称")
    private String brand;

    @ApiModelProperty("申请车号号")
    private String licensePlate;

    @ApiModelProperty("车辆类型")
    private String type;

    @ApiModelProperty("车辆编号")
    private Integer vehicleId;

    @ApiModelProperty("车辆价值")
    private String worth;

    @ApiModelProperty("当前状态")
    private String status;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date kaishiTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date jieshuTime;

    @ApiModelProperty("上级审批人员")
    private String manager;
    //下面是自己数据库没有的字段

    @ApiModelProperty("流程实例编号")
    @TableField(exist = false)
    private String processInstanceId;

    @ApiModelProperty("当前流程节点")
    @TableField(exist = false)
    private String currentNode;

    @ApiModelProperty("申请日期")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date applicDate;

    @ApiModelProperty("当前处理人")
    @TableField(exist = false)
    private Emp assigneeEmp;

    @ApiModelProperty("是否结束")
    @TableField(exist = false)
    private boolean end;

    @ApiModelProperty("审批结果")
    @TableField(exist = false)
    private boolean approved;

    @ApiModelProperty("任务编号")
    @TableField(exist = false)
    private String taskId;

    @ApiModelProperty("流程发起人")
    @TableField(exist = false)
    private Emp startEmp;

    @ApiModelProperty("审批人员")
    private String admSpecialist;
}
